<div class="zs-body" data-ng-init="formInit('gisbasemap', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{area:0}
    }) && loadData('gisbasemap');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">地图配置</a>
            <i class="right-arr"></i>
            <a href="javascript:;">离线底图</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建"
                   ng-click="addRow('gisbasemap') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑"
                   ng-click="editRow('gisbasemap', gisbasemap.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                   ng-click="delEntitys('gisbasemap')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="数据名称" ng-model="gisbasemap.queryObject['name']"/>
                </span>
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="所属区域" ng-model="gisbasemap.queryObject['area']"/>
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('gisbasemap')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">

            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                            <tr>
                                <th>
                                    <input id="allCheckbox" type="checkbox"
                                           ng-click="selectAll('gisbasemap','allCheckbox');"/>
                                </th>
                                <th>数据名称</th>
                                <th>大小</th>
                                <th>所属区域</th>
                                <th>是否有效</th>
                                <th>文件路径</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="r in gisbasemap.datas">
                                <td>
                                    <input type="checkbox"
                                           ng-click="selectRow('gisbasemap',r);"
                                           ng-model="r.selected"/>
                                </td>
                                <td>
                                    <a ng-click="editRow('gisbasemap',r) && openWindow('edit');">
                                        <label ng-bind="r.name"></label>
                                    </a>
                                </td>
                                <td>
                                    <a ng-click="editRow('gisbasemap',r) && openWindow('edit');">
                                        <label ng-bind="r.size"></label>
                                    </a>
                                </td>
                                <td>
                                    <a ng-click="editRow('gisbasemap',r) && openWindow('edit');">
                                        <label ng-bind="r.area"></label>
                                    </a>
                                </td>
                                <td>
                                    <a ng-click="editRow('gisbasemap',r) && openWindow('edit');">
                                        <label ng-bind="r.valid | asChineseBool "></label>
                                    </a>
                                </td>
                                <td>
                                    <a ng-click="editRow('gisbasemap',r) && openWindow('edit');">
                                        <label ng-bind="r.path"></label>
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gisbasemap'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="离线底图编辑" width='560px' height='180px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
                        <tr>
                            <td class="text" width="20%">数据名称</td>
                            <td class="left" width="30%">
                                <input type="text" ng-model="gisbasemap.editRow.name" class="zs-input"/>
                            </td>
                            <td class="text" width="20%">大小</td>
                            <td class="left" width="30%">
                                <input type="text" ng-model="gisbasemap.editRow.size" class="zs-input"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="text" width="20%">所属区域</td>
                            <td class="left" width="30%">
                                <input type="text" ng-model="gisbasemap.editRow.area" class="zs-input"/>
                            </td>
                            <td class="text" width="20%">是否有效</td>
                            <td class="left" width="30%">
                                <input type="checkbox" ng-model="gisbasemap.editRow.valid"
                                       ng-true-value="true" ng-false-value="false" value='false'/>
                            </td>
                        </tr>
                        <tr>
                            <td class="text" width="20%">文件路径</td>
                            <td colspan="3" class="left" width="80%">
                                <input type="text" ng-model="gisbasemap.editRow.path" class="zs-input"/>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="4">
                                <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                       ng-click="formValidate(form) && save('gisbasemap', gisbasemap.editRow, saveCloseWindow)"/>
                                <input type="button" name="ok" value="取消" class="zs-btn c-green"
                                       ng-click="closeWindow('edit')"/>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>